Basic Steps for Creating a New App

Apps are custom applications that can be developed in the Scripting Workbench component of Image-Pro.

What an App can do is limited only by the available functions of Image-Pro and the available set of application controls -- for example, for entering information in a text box, selecting from a combo box, printing to a printer, getting data from a database, and so on.  

Typically, an App will be developed to automate a complex process that pulls together the automated steps of more than one macro and/or multiple Image-Pro commands.

The basic steps for creating a new App are described below.  Note that detailed information about the controls and options on the Scripting Workbench can be found in the Image-Pro Macro Scripting Help.

To create a new App:

On the Scripting ribbon bar, click on Scripting Workbench in the Macros group.

The Scripting Workbench application workspace is displayed.

In the Scripting Explorer panel located on the right side of the application workspace, navigate to the project to which you want to add the new App, and right click on the project name.

A pop-up menu presents the option to "Add New App".

Click on Add New App.

You are prompted to give the App a name.

Provide a name for the App, and click OK.

The new App appears as a member of the project in the Scripting Explorer panel. .

Double-click on the new App.

A blank App window is opened in the Scripting Workbench workspace. 

At this point, you can add App controls, previously-created macros, and individual Image-Pro functions by dragging and dropping them into App from the Toolbox panel located on the left side of the application workspace.

When you drag and drop a macro or Image-Pro function from the Toolbox panel, an object is created for that item inside the App window. When you click on the object, you have access to all of its properties via the Properties panel on the lower right side of the application workspace.  

Notice also that you can arrange objects in the App workspace by clicking and dragging them around and by resizing them.  

Double-clicking on any object that has been added to the App shows the code view for that control. In code view, you can make any adjustments needed to set parameters or use variables.  To return to the designer view, click the Designer View button in the top right corner of the application workspace.

Once you are done constructing, arranging, and configuring the controls of your App, you are ready to save and load it.

Note: When cutting and pasting controls from one area of an App to another, or from one App to another, the code attached to these controls is left as is and is not transferred to the new location.

Save the App.  

To save the App, click on the Scripting Workbench application button and select Save All (or type <CTRL><S>).

Load the App.

To load the new App, click on the Load button on the Scripting Workbench ribbon bar.